/******************************************************
FileName:rules.js
create Date:2010-09-14
Description:各种页面表单域验证规则
author: cmhe
******************************************************/
var isLoginName = "^[A-Za-z][A-Za-z0-9\\_\\@\\.]+$";
var isFaxNumber = "^[0-9\\-]+$";
var isNumOrWord = "^[A-Za-z0-9]+$";
var isPassWord =  "^[A-Za-z0-9\\_\\@]+$";
var isPositiveNumber11 = "^\\d{11}$";
var isNumber = "^[0-9]+$";
var isNotEmpty = ".+";
var isNotSpace = "^\\S+$";
var isPositiveNumber = "^\\d+\\.?\\d*$";
var isPositiveNumber_12_2 = "^\\d{1,10}(\\.\\d{0,2}){0,1}$";
var isPositiveNumber_10_2 = "^\\d{1,8}(\\.\\d{0,2}){0,1}$";
var isPositiveNumber_10_3 = "^\\d{1,7}(\\.\\d{0,3}){0,1}$";
var isPositiveInteger = "^\\d*[1-9]+\\d*$";
var isPositiveNumber_15_3 = "^\\d{1,12}(\\.\\d{0,3}){0,1}$";
var isMobile = "^13\\d{9}$";
var isZipCode = "^\\d{6}$";
var isBpNumber = "^\\d{5,8}[-]?\\d{3,7}$";
var isPhoneNumber = "^\\d{6,8}$";
var isFileName = "^[a-zA-Z0-9\\.-_]+$";
var isWord = "^\\w+$";
var isPidNumber = "^[1-9]\\d{14,17}[xX]?$";
var isValidDate = "^((1[6-9]|[2-9]\\d)?\\d{2})-(((0[13578]|1[02])-31)|((0[1,3-9]|1[0-2])-(29|30)))$|^(((1[6-9]|[2-9]\\d)?(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00)))-(02-29)$|^((1[6-9]|[2-9]\\d)?\\d{2})-((0[1-9])|(1[0-2]))-(0[1-9]|1\\d|2[0-8])$";
var isValidDateWithTime= "^((1[6-9]|[2-9]\\d)?\\d{2})-(((0[13578]|1[02])-31)|((0[1,3-9]|1[0-2])-(29|30)))(\\s((\\b0\\d\\b)|(1\\d)|(2[0-3])):((\\b0\\d\\b)|([1-5]\\d))){0,1}$|^(((1[6-9]|[2-9]\\d)?(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00)))-(02-29)(\\s((\\b0\\d\\b)|(1\\d)|(2[0-3])):((\\b0\\d\\b)|([1-5]\\d))){0,1}$|^((1[6-9]|[2-9]\\d)?\\d{2})-((0[1-9])|(1[0-2]))-(0[1-9]|1\\d|2[0-8])(\\s((\\b0\\d\\b)|(1\\d)|(2[0-3])):((\\b0\\d\\b)|([1-5]\\d))){0,1}$";
var isEmail = "^\\w+((-\\w+)|(\\.\\w+))*\\@[A-Za-z0-9]+((\\.|-)[A-Za-z0-9]+)*\\.[A-Za-z0-9]+$";
var isChineseName = "^[\u4E00-\u9FA5]{2,}$";
var isChinese= "^[\u4E00-\u9FA5]+$";
var isURL = "^(http://){0,1}.+\\..+\\..+$";
var isValidDateText="^[0-9]{4}[-\\.\/][0-1]{1}[0-9]{1}[-\\.\/][0-9]{1,2}$";
var isDbString="['^%\"<>]+";
var isSpecNumber = "^\\-?\\d*[0-9]+\\d*$";
var isPosiInteger = "^\\d*[0-9]+\\d*$";
var isBillDt = "^((1[6-9]|[2-9]\\d)?\\d{2})(0[1-9]|10|11|12)$";

//开发中需要新添加的验证规则在下面新增
